﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012C3 RID: 4803
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingTurnActionScRsp : IMessage<SwordTrainingTurnActionScRsp>, IMessage, IEquatable<SwordTrainingTurnActionScRsp>, IDeepCloneable<SwordTrainingTurnActionScRsp>, IBufferMessage
	{
		// Token: 0x17003CBE RID: 15550
		// (get) Token: 0x0600D73B RID: 55099 RVA: 0x00241C95 File Offset: 0x0023FE95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingTurnActionScRsp> Parser
		{
			get
			{
				return SwordTrainingTurnActionScRsp._parser;
			}
		}

		// Token: 0x17003CBF RID: 15551
		// (get) Token: 0x0600D73C RID: 55100 RVA: 0x00241C9C File Offset: 0x0023FE9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingTurnActionScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003CC0 RID: 15552
		// (get) Token: 0x0600D73D RID: 55101 RVA: 0x00241CAE File Offset: 0x0023FEAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingTurnActionScRsp.Descriptor;
			}
		}

		// Token: 0x0600D73E RID: 55102 RVA: 0x00241CB5 File Offset: 0x0023FEB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingTurnActionScRsp()
		{
		}

		// Token: 0x0600D73F RID: 55103 RVA: 0x00241CC8 File Offset: 0x0023FEC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingTurnActionScRsp(SwordTrainingTurnActionScRsp other) : this()
		{
			this.hENIKPBCKGC_ = other.hENIKPBCKGC_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D740 RID: 55104 RVA: 0x00241CFE File Offset: 0x0023FEFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingTurnActionScRsp Clone()
		{
			return new SwordTrainingTurnActionScRsp(this);
		}

		// Token: 0x17003CC1 RID: 15553
		// (get) Token: 0x0600D741 RID: 55105 RVA: 0x00241D06 File Offset: 0x0023FF06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> HENIKPBCKGC
		{
			get
			{
				return this.hENIKPBCKGC_;
			}
		}

		// Token: 0x17003CC2 RID: 15554
		// (get) Token: 0x0600D742 RID: 55106 RVA: 0x00241D0E File Offset: 0x0023FF0E
		// (set) Token: 0x0600D743 RID: 55107 RVA: 0x00241D16 File Offset: 0x0023FF16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D744 RID: 55108 RVA: 0x00241D1F File Offset: 0x0023FF1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingTurnActionScRsp);
		}

		// Token: 0x0600D745 RID: 55109 RVA: 0x00241D30 File Offset: 0x0023FF30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingTurnActionScRsp other)
		{
			return other != null && (other == this || (this.hENIKPBCKGC_.Equals(other.hENIKPBCKGC_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D746 RID: 55110 RVA: 0x00241D80 File Offset: 0x0023FF80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.hENIKPBCKGC_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D747 RID: 55111 RVA: 0x00241DCD File Offset: 0x0023FFCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D748 RID: 55112 RVA: 0x00241DD5 File Offset: 0x0023FFD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D749 RID: 55113 RVA: 0x00241DE0 File Offset: 0x0023FFE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			this.hENIKPBCKGC_.WriteTo(ref output, SwordTrainingTurnActionScRsp._repeated_hENIKPBCKGC_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D74A RID: 55114 RVA: 0x00241E30 File Offset: 0x00240030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.hENIKPBCKGC_.CalculateSize(SwordTrainingTurnActionScRsp._repeated_hENIKPBCKGC_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D74B RID: 55115 RVA: 0x00241E84 File Offset: 0x00240084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingTurnActionScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.hENIKPBCKGC_.Add(other.hENIKPBCKGC_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D74C RID: 55116 RVA: 0x00241ED1 File Offset: 0x002400D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D74D RID: 55117 RVA: 0x00241EDC File Offset: 0x002400DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 112U && num != 114U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.hENIKPBCKGC_.AddEntriesFrom(ref input, SwordTrainingTurnActionScRsp._repeated_hENIKPBCKGC_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040055D2 RID: 21970
		private static readonly MessageParser<SwordTrainingTurnActionScRsp> _parser = new MessageParser<SwordTrainingTurnActionScRsp>(() => new SwordTrainingTurnActionScRsp());

		// Token: 0x040055D3 RID: 21971
		private UnknownFieldSet _unknownFields;

		// Token: 0x040055D4 RID: 21972
		public const int HENIKPBCKGCFieldNumber = 14;

		// Token: 0x040055D5 RID: 21973
		private static readonly FieldCodec<uint> _repeated_hENIKPBCKGC_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x040055D6 RID: 21974
		private readonly RepeatedField<uint> hENIKPBCKGC_ = new RepeatedField<uint>();

		// Token: 0x040055D7 RID: 21975
		public const int RetcodeFieldNumber = 1;

		// Token: 0x040055D8 RID: 21976
		private uint retcode_;
	}
}
